What does GenTrn filtering do?

Filtering lets the GenTrn program remove certain records from the extract file so they will not be referenced in the TRN file. The search masks of the records to be filtered out of the extract file are specified in a separate file. Here's how GenTrn filtering works:

GenTrn [/f] [/b] [/fb] /ini

 

Parameter

Description

/f

The GenTrn program filters the extract file, then stops. It does not generate a TRN file.

/b

The GenTrn program will not filter the extract file. It generates a TRN file from the existing extract file. If you want to keep the extract file on a drive different from that used for the library resources, choose this option. Otherwise, the GenTrn program will not run.

/fb

The GenTrn program first filters the extract file, then generates the TRN file from the filtered extract file.

/ini

Enter the name of the FSIUSER.INI file.

The GenTrn program creates a TRN (transaction) file by reading an extract file. The TRN file contains offsets which refer to the extract file.

When you run the GenTrn program with filtering on, the GenTrn program reads the extract file record by record. It compares each record with the filter list. Records which do not match are copied into a temporary extract file. At the end of the filtering process, the temporary extract file contains all of the original extract records except those which match the filtering criteria.

This temporary extract file is then copied over the original extract file, and the GenTrn program continues by generating a TRN file based on the filtered extract file. This is the default. If there is no filter file, the GenTrn program does not filter the extract file and provide warning messages, but it does generate a TRN file.

Note   The EXCLUDE.DAT file is used on the personal computer platform only. The system does not use it on the host.